﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for EnumExtensionsTest and is intended
    ///to contain all EnumExtensionsTest Unit Tests
    ///</summary>
	[TestClass()]
	public class EnumExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for And
		///</summary>
		[TestMethod()]
		public void AndTest()
		{
			Enum e1 = null; // TODO: Initialize to an appropriate value
			Enum e2 = null; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = EnumExtensions.And(e1, e2);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for EnumToString
		///</summary>
		[TestMethod()]
		public void EnumToStringTest()
		{
			Enum e = null; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = EnumExtensions.EnumToString(e);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for GetFlags
		///</summary>
		[TestMethod()]
		public void GetFlagsTest()
		{
			Enum e = null; // TODO: Initialize to an appropriate value
			IEnumerable<Enum> expected = null; // TODO: Initialize to an appropriate value
			IEnumerable<Enum> actual;
			actual = EnumExtensions.GetFlags(e);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Or
		///</summary>
		[TestMethod()]
		public void OrTest()
		{
			Enum e1 = null; // TODO: Initialize to an appropriate value
			Enum e2 = null; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = EnumExtensions.Or(e1, e2);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for StringToEnum
		///</summary>
		[TestMethod()]
		public void StringToEnumTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			Enum expected = null; // TODO: Initialize to an appropriate value
			Enum actual;
			actual = EnumExtensions.StringToEnum(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ToDictionary
		///</summary>
		[TestMethod()]
		public void ToDictionaryTest()
		{
			Enum enumeration = null; // TODO: Initialize to an appropriate value
			IDictionary<string, int> expected = null; // TODO: Initialize to an appropriate value
			IDictionary<string, int> actual;
			actual = EnumExtensions.ToDictionary(enumeration);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
